#pragma once
#include <MsHtml.h>
#include "DOMNode.h"

class MyDOMTree
{
public:
	MyDOMTree(void){};
	~MyDOMTree(void){delete m_pDOMNodeRoot;};
	bool Update(IHTMLDocument2* pDoc);
	void BuildTree();
	DOMNode* GetRoot(){return m_pDOMNodeRoot;};
private:
	CComPtr<IHTMLDocument2> m_spDoc2;
	DOMNode* m_pDOMNodeRoot;
};
